<notempty name="_extra_menu">
{// 动态扩展菜单 //}
{:extra_menu($_extra_menu,$__MENU__)}
</notempty>
<volist name="__MENU__.child" id="sub_menu">
<!-- 子导航 -->
<notempty name="sub_menu">
<li class="admin-parent">
    <a class="am-cf" data-am-collapse="{ target: '#collapse-nav-{$key}' }">
        <span class="am-icon-list"></span>
        <notempty name="key">{$key}</notempty>
        <span class="am-icon-angle-right am-fr am-margin-right"></span>
    </a>
    <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-{$key}">
    <volist name="sub_menu" id="menu">
        <li>
            <a href="{$menu.url|U}" class="am-cf">
                <span class="am-icon-file"></span>
                {$menu.title}
                <!-- <span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span> -->
            </a>
        </li>
    </volist>
    </ul>
</li>
</notempty>
</volist>
<li class="admin-parent">
    <a class="am-cf" data-am-collapse="{ target: '#collapse-nav-个人中心' }">
        <span class="am-icon-list"></span>
        个人中心
        <span class="am-icon-angle-right am-fr am-margin-right"></span>
    </a>
    <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-个人中心">
        <li <eq name="Think.ACTION_NAME" value="mydocument">class="current"</eq>>
            <a class="item" href="{:U('article/mydocument')}"><span class="am-icon-file"></span> 我的文档</a>
        </li>
        <eq name="show_draftbox" value="1">
        <li <eq name="Think.ACTION_NAME" value="draftbox">class="current"</eq>>
            <a class="item" href="{:U('article/draftbox')}"><span class="am-icon-file"></span> 草稿箱</a>
        </li>
        </eq>
        <eq name="show_examine" value="1">
        <li <eq name="Think.ACTION_NAME" value="draftbox">class="examine"</eq>>
            <a class="item" href="{:U('article/examine')}"><span class="am-icon-file"></span> 待审核</a>
        </li>
        </eq>
    </ul>
</li>

<volist name="nodes" id="sub_menu">
    <!-- 子导航 -->
    <notempty name="sub_menu">
    <li class="admin-parent">
        <a class="am-cf" href="{$sub_menu.url|U}" data-am-collapse="{ target: '#collapse-nav-{$sub_menu.title}' }">
        	<i class="am-icon-list am-icon"></i> 
        	<gt name="sub_menu['allow_publish']" value="0">{$sub_menu.title}<else/>{$sub_menu.title}</gt>
        </a>
        <ul class="am-list am-collapse admin-sidebar-sub am-in side-sub-menu <neq name='sub_menu["current"]' value="1">subnav-off</neq>"  id="collapse-nav-{$sub_menu.title}' }">
            <volist name="sub_menu['_child']" id="menu">
                <li <if condition="$menu['id'] eq $cate_id or $menu['current'] eq 1">class="current"</if>>
                    <gt name="menu['allow_publish']" value="0"><a class="item" href="{$menu.url|U}"><span class="am-icon am-icon-file"></span>  {$menu.title}</a><else/><a class="item" href="javascript:void(0);"><span class="am-icon am-icon-file"></span>  {$menu.title}</a></gt>

                    <!-- 一级子菜单 -->
                    <present name="menu['_child']">
                    <ul class="subitem">
                    	<foreach name="menu['_child']" item="three_menu">
                        <li>
                            <gt name="three_menu['allow_publish']" value="0"><a class="item" href="{$three_menu.url|U}">{$three_menu.title}</a><else/><a class="item" href="javascript:void(0);">{$three_menu.title}</a></gt>
                            <!-- 二级子菜单 -->
                            <present name="three_menu['_child']">
                            <ul class="subitem">
                            	<foreach name="three_menu['_child']" item="four_menu">
                                <li>
                                    <gt name="four_menu['allow_publish']" value="0"><a class="item" href="{:U('index','cate_id='.$four_menu['id'])}">{$four_menu.title}</a><else/><a class="item" href="javascript:void(0);">{$four_menu.title}</a></gt>
                                    <!-- 三级子菜单 -->
                                    <present name="four_menu['_child']">
                                    <ul class="subitem">
                                    	<volist name="four_menu['_child']" id="five_menu">
                                        <li>
                                        	<gt name="five_menu['allow_publish']" value="0"><a class="item" href="{:U('index','cate_id='.$five_menu['id'])}">{$five_menu.title}</a><else/><a class="item" href="javascript:void(0);">{$five_menu.title}</a></gt>
                                        </li>
                                        </volist>
                                    </ul>
                                    </present>
                                    <!-- end 三级子菜单 -->
                                </li>
                                 </foreach>
                            </ul>
                            </present>
                            <!-- end 二级子菜单 -->
                        </li>
                        </foreach>
                    </ul>
                    </present>
                    <!-- end 一级子菜单 -->
                </li>
            </volist>
        </ul>
    </li>
    </notempty>
    <!-- /子导航 -->
</volist>

<!-- 回收站 -->
<eq name="show_recycle" value="1">
<li>
    <a class="am-cf" href="{:U('article/recycle')}"><span class="am-icon-list"></span> 回收站</a>
</li>
</eq>
